/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;

/**
 *
 * @author Hendro Steven
 */
@Entity
public class Semester implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String namaSemester;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date tanggalAwalSemester;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date tanggalAkhirSemester;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    

    @Override
    public String toString() {
        return "com.wiai.untl.core.entity.Semester[ id=" + id + " ]";
    }

    /**
     * @return the namaSemester
     */
    public String getNamaSemester() {
        return namaSemester;
    }

    /**
     * @param namaSemester the namaSemester to set
     */
    public void setNamaSemester(String namaSemester) {
        this.namaSemester = namaSemester;
    }

    /**
     * @return the tanggalAwalSemester
     */
    public Date getTanggalAwalSemester() {
        return tanggalAwalSemester;
    }

    /**
     * @param tanggalAwalSemester the tanggalAwalSemester to set
     */
    public void setTanggalAwalSemester(Date tanggalAwalSemester) {
        this.tanggalAwalSemester = tanggalAwalSemester;
    }

    /**
     * @return the tanggalAkhirSemester
     */
    public Date getTanggalAkhirSemester() {
        return tanggalAkhirSemester;
    }

    /**
     * @param tanggalAkhirSemester the tanggalAkhirSemester to set
     */
    public void setTanggalAkhirSemester(Date tanggalAkhirSemester) {
        this.tanggalAkhirSemester = tanggalAkhirSemester;
    }
    
}
